/*
** my_strcmp.c for my_strcmp in /home/nadali_t//local/piscine/Jour_06/ex_05
** 
** Made by thomas nadalie
** Login   <nadali_t@epitech.net>
** 
** Started on  Mon Oct  8 10:50:34 2012 thomas nadalie
** Last update Mon Nov 19 16:44:43 2012 thomas nadalie
*/

#include	"my.h"

int		my_strcmp(char *s1, char *s2)
{
  int		i;
  int		j;

  i = 0;
  j = 0;
  while (s1[i] && s2[i])
    {
      if (s1[i] == s2[i])
	j++;
      i++;
    }
  return (i - j);
}
